package com.san.school.service.impl;

import com.san.school.entity.Course;
import com.san.school.entity.CourseExample;
import com.san.school.mapper.CourseMapper;
import com.san.school.service.CourseService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * ClassName:CourseServiceImpl
 * PackageName:com.san.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/6 17:07
 * 
 */
 
 
@Service
public class CourseServiceImpl implements CourseService {

    @Resource
    private CourseMapper courseMapper;

    @Override
    public long countByExample(CourseExample example) {
        return courseMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CourseExample example) {
        return courseMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer courseid) {
        return courseMapper.deleteByPrimaryKey(courseid);
    }

    @Override
    public int insert(Course record) {
        return courseMapper.insert(record);
    }

    @Override
    public int insertSelective(Course record) {
        return courseMapper.insertSelective(record);
    }

    @Override
    public List<Course> selectByExample(CourseExample example) {
        return courseMapper.selectByExample(example);
    }

    @Override
    public Course selectByPrimaryKey(Integer courseid) {
        return courseMapper.selectByPrimaryKey(courseid);
    }

    @Override
    public int updateByExampleSelective(Course record,CourseExample example) {
        return courseMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Course record,CourseExample example) {
        return courseMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Course record) {
        return courseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Course record) {
        return courseMapper.updateByPrimaryKey(record);
    }

}
